<?php
require_once("../../views/layout/cabecalho.php");
require_once("../../controllers/CarcacaController.class.php");
$carcaca = $carcacaController->listById($_GET['id']);
?>

<div class="formAll">
    <div class="formCarcaca">

        <h2>Editar Carcaça</h2>


        <div class="actions">
            <ul>
                <li><a href="../../views/carcaca">Listar Carcaças</a></li>
                <li></li>
            </ul>



        </div>
        <form  method="post" action="../../controllers/CarcacaController.class.php">
            <!--Define o metodo que sera chamado no Controller -->
            <input name="metodo" value="edit" type="hidden"/>


            <fieldset>
                <legend>Incluir Carcaça</legend>
                
                <input name="id" value="<?php echo $carcaca->getId(); ?>" type="hidden"/>

                <label for="data_de_entrada">Data de Entreda:</label>
                <input value ="<?php echo $carcaca->getData_de_entrada(); ?>" name="data_de_entrada" id="data_de_entreda" type="text"/></br>

                <label for="especie">Especie:</label>
                <input value ="<?php echo $carcaca->getEspecie(); ?>"  name="especie" id="especie" type="text"/></br>

                <label for="local_de_origem">Local de Origem:</label>
                <input value ="<?php echo $carcaca->getLocal_de_origem(); ?>" id="local_de_origem" name="local_de_origem" type="text"/></br>

                <label for="responsavel_pela_entrega">Responsavel :</label>
                <input value ="<?php echo $carcaca->getResponsavel_pela_entrega(); ?>" id="responsavel_pela_entrega" name="responsavel_pela_entrega" type="text"/></br>


                <label for="data_de_saida">Data de saida:</label>
                <input value ="<?php echo $carcaca->getData_de_saida(); ?>"  name="data_de_saida" id="data_de_saida" type="text"/></br>

                <label for="destino">Destino:</label>
                <input value ="<?php echo $carcaca->getDestino(); ?>"  name="destino" id="destino" type="text"/></br>

            </fieldset>


            <input id="enviar" type="submit" value="Enviar"/>
        </form>
    </div>
</div>

<?php
require_once("../../views/layout/rodape.php");
?>